import request from "../utils/request";
import Qs from "qs";
/**
 *
 * @param {根据名称查询数据点列表} params
 * @returns
 */
export function getRealData(params) {
    return request({
        url: "/realdata/realDataAllListHistory",
        method: "post",
        params,
    });
}
/**
 *
 * @param {根据数据点id查询历史数据} params
 * @returns
 */
export function getHistoryData(params) {
    return request({
        url: "/historydata/listHistorydata",
        method: "post",
        params,
    });
}

/**
 * 查询历史数据
 */
export function getHistoryDataNew(params) {
    return request({
        url: "/historydata/listHistorydataBySystem",
        method: "post",
        params,
        paramsSerializer: (params) => {
            return Qs.stringify(params, { indices: false });
        },
    });
}